package com.star.happy.wallpaper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName happy_wallpaper
 */
@TableName(value ="happy_wallpaper")
@Data
@ToString
public class HappyWallpaper implements Serializable {
    /**
     * 壁纸主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long user_id;

    /**
     * 壁纸url逗号分割
     */
    @TableField(value = "url")
    private String url;

    /**
     * 文本
     */
    @TableField(value = "text")
    private String text;

    /**
     * 乐观锁
     */
    @TableField(value = "version")
    private Integer version;

    /**
     * 状态0正常1下架
     */
    @TableField(value = "is_del")
    private Byte is_del;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date create_time;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}